import request from "@/utils/request";

// 用户登录请求
export function loginApi(data) {
  return request({
    url: "/sys/login",
    method: "POST",
    data,
  });
}

// 封装用户基本资料请求
export function getInfoApi() {
  return request({
    url:'/sys/profile',
    method:'POST'
  });
}

// 封装用户头像接口请求
export function getBaseApi(id){
  return request({
    url:`/sys/user/${id}`
  })
}

